import {createApp} from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'

import ElementPlus from 'element-plus';
import 'element-plus/lib/theme-chalk/index.css';

const app = createApp(App);
app.use(store);
app.use(ElementPlus);
app.use(router);
app.mount('#app')

app.config.globalProperties.applets = function () {
    console.log('111小程序')
}

// createApp(App).use(store).use(ElementPlus).use(router).mount('#app')

/**
 * 换一种写法
 * const app = createApp(App)
 * app.use(store)
 * app.use(ElementPlus)
 * app.use(router)
 * app.mount('#app')
 */
